package com.lib.common.helper.sharehelper.entity

/**
 * 显示的信息类
 *
 * @author keanbin
 */
class ShowInfo private constructor() {

    /**
     * 要显示的分享类型
     */
    private var showShareTypeList = mutableListOf<ShareType>()

    /**
     * 增加要显示的分享类型
     */
    fun addShowShareType(shareType: ShareType) {
        showShareTypeList.add(shareType)
    }

    /**
     * 工厂
     */
    class ShowInfoFactory {

        companion object {
            /**
             * 获取默认的 ShowInfo
             */
            fun getDefaultShowInfo(): ShowInfo {
                var showInfo = ShowInfo()
                showInfo.addShowShareType(ShareType.WEI_XIN_FRIEND_SHARE)
                showInfo.addShowShareType(ShareType.WEI_XIN_FRIEND_CIRCLE_SHARE)

                return showInfo
            }

            /**
             * 获取 ShowInfo
             */
            fun getShowInfo(): ShowInfo {
                return ShowInfo()
            }
        }
    }
}